<div class="container-fluid all">
    <div class="sidebar">
        <div id="myMsg">
            <h3 align="center">我的信息</h3>
            <div style="margin-left: 50px;">
                <button id="start">开始营业</button>
                <button id="end">打烊</button></div>
            <div>
                <h5 align="center" id="porName"></h5>
                <h5 align="center" id="porAddr"></h5>
            </div>
            <div>
                <img id="portrait" src="{{vm.merchant.portait}}" style="height: 200px; width: 200px; margin-left: 10px;"
                />
            </div>
        </div>
        <ul class="nav" style="margin-top: 20px">
            <li class="has-sub"><a href="javascript:void(0);"><span
						style="align-content: center">店铺管理</span><i
						class="fa fa-caret-right fa-fw pull-right"></i></a>
                <ul class="sub-menu">
                    <li class="menu-manage"><a href="./#!/orderlist" id="all" class="check"><i
								class="fa fa-circle-o fa-fw"></i>&nbsp;订单管理</a></li>
                    <li class="menu-manage"><a href="./#!/foodlist" id="Unreplied" class="check"><i
								class="fa fa-circle-o fa-fw"></i>&nbsp;菜品管理</a></li>
                    <li class="menu-manage"><a href="./#!/orderComment" id="Replied" class="check"><i
								class="fa fa-circle-o fa-fw"></i>&nbsp;评论管理</a></li>
                </ul>
            </li>
        </ul>

    </div>

    <div class="update-food-div">
        <form enctype="multipart/form-data" action="/m/food/updateFood" method="POST" class="form-horizontal showcase-form " role="form" id="basic_form" name="basic_form" novalidate="">
            <input type="hidden" id="foodid" name="_id" value="{{vm.food._id}}" />
            <div class="form-group">
                <label class="col-sm-2 control-label">Food Name</label>

                <div class="col-sm-10">
                    <input type="text" name="fname" ng-model="vm.food.fname" required="" class="form-control" placeholder="Food Name">
                </div>
            </div>
             <div class="form-group">
                  <label class="col-sm-2 control-label">Food Type</label>
                 <div class="col-sm-10">
                    <select id="ftype" name="ftype" class="form-control" ng-model="vm.food.ftype">
                      <option  value="">{{temp.defaultLable}}</option>
                      <option ng-repeat="type in vm.types" value="{{type.value}}">
                         {{type.label}}
                      </option>
                     </select>
                </div>
             </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Food Price</label>

                <div class="col-sm-10">
                    <input type="text" required="" ng-pattern="/^(\d*\.)?\d+$/" name="fprice" ng-model="vm.food.fprice" class="form-control"
                        placeholder="价格（数字）">
                </div>
            </div>
            <div class="form-group">
                 <label class="col-sm-2 control-label">Food Image</label>
                 <div class="col-md-6">
                    <input ng-file-select type="file" name="FoodImage"/>
                 </div>
            </div>
            <div class="form-group" ng-show="basic_form.$invalid && (basic_form.$dirty || vm.show_type == 3) && vm.show_error">
                <label class="col-sm-2 control-label"></label>

                <div class="col-sm-10">
                    <div class="alert alert-danger" style="margin-bottom: 0px">
                        <ul>
                            <li ng-show="(basic_form.fname.$dirty) && basic_form.fname.$error.required">foodname不能为空！</li>
                            <li ng-show="(basic_form.fprice.$dirty) && basic_form.fprice.$error.required">价格不能为空！</li>
                            <li ng-show="(basic_form.fprice.$dirty) && basic_form.fprice.$error.pattern">价格数字格式不对</li>
                        </ul>
                    </div>
                </div>
            </div>

        </form>
    </div>
    <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button  ng-click="vm.submit()" class="btn btn-success">提交</button>
                </div>
     </div>

</div>

 <!-- 拉黑拉白模态框 -->

	<div class="modal fade" id="black" tabindex="-1" role="dialog" data-backdrop="static">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-body">
					<div style="color: red"><h1>您暂时没有操作权限</h1></div>
				</div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal-dialog -->
	</div>
	<!-- /.modal -->